package com.moonshineproject.plugin.settings.vo
{
    import com.moonshineproject.plugin.settings.renderers.ColorRenderer;
    
    import mx.core.IVisualElement;

    public class ColorSetting extends AbstractSetting
    {

        public function ColorSetting(provider:Object, name:String, label:String)
        {
            super();
            this.provider = provider;
            this.name = name;
            this.label = label;
            defaultValue = stringValue;
        }

        
        public function get value():uint
        {
            return parseInt(getSetting());
        }

        public function set value(v:uint):void
        {
            setPendingSetting(v);
        }

        override public function get renderer():IVisualElement
        {
            var rdr:ColorRenderer = new ColorRenderer();
            rdr.setting = this;

            return rdr;
        }

    }
}